package com.bawei.mall.product.controller;

import com.bawei.common.core.domain.R;
import com.bawei.mall.product.domain.MallProductBrandLove;
import com.bawei.mall.product.service.IMallProductInfoService;
import com.bawei.mall.product.service.MallProductBrandLoveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author：HaoYunde
 * @Package：com.bawei.mall.product.controller
 * @Project：mall_cloud
 * @name：MallProductBrandLoveController
 * @Date：2024/6/29 10:46
 */
@RestController
@RequestMapping("/love")
public class MallProductBrandLoveController {
    @Autowired
    private MallProductBrandLoveService mallProductBrandLoveService;

    @PostMapping("/add")
    public R add(@RequestBody MallProductBrandLove  mallProductBrandLove){
        mallProductBrandLoveService.add(mallProductBrandLove);
        return R.ok();
    }



    @GetMapping("/del")
    public R del(@RequestParam("id") Integer id){
        mallProductBrandLoveService.del(id);
        return R.ok();
    }
}
